package com.easylinkin.linkappapi.lobar.controller;


import com.easylinkin.linkappapi.lobar.service.UserLoginService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import site.morn.rest.RestMessage;


@RestController
@RequestMapping("userLogin")
@Api(tags = "门户网接入-用户权限校验")
public class UserLoginController {

    @Autowired
    private UserLoginService userLoginService;


    @GetMapping("/userCheck")
    @ApiOperation("用户大屏权限校验")
    public RestMessage userCheck(String ticket, String token) throws Exception {
        return userLoginService.userCheck(ticket, token);
    }

}
